<?php
//////////////////////////////////////
// Class Registration System 		//
// CPSC 462				     		//
// Instructor Info Page      	 	//
// Trent Robbins & Richard Heywood 	//
//////////////////////////////////////

date_default_timezone_set('America/New_York');
include('Website.class.php');
$css = '';
$js = '';
$body = '';
$studId = $_GET['studId'];
$page = new Website();
$page->dbConnect();
$profId = $_GET['instructorId'];

list($fName,$lName,$hours,$building,$roomN,$webpage,$rmp) = $page->getInstructorInfo($profId);

$body .= "<table>
			<tr>
				<td rowspan=6 class='pic'>
					<img src='./pics/instructors/{$profId}.jpg' alt='Instructor Picture'/>
				</td>
				<td rowspan=6>
					First Name:<br />

					Last Name:<br />
				
					Office Hours:<br />
				
					Office Locatin:<br />
				
					Webpage:<br />
				
					RateMyProfessor.com Link:<br />
				
				</td>
				<td>
					$fName <br />

					$lName <br />
				
					$hours <br />
				
					$building $roomN <br />
				
					$webpage <br />
				
					$rmp <br />
				</td>
			</tr>
		 </table><br />";

$body .= 'Courses:<br /><br />';
$body .= 	$page->getProfCourses($profId,$studId);
$body .= 	'<br /><br />';
$body .= "<input type='button' value='Return to Courses List' onclick='window.close()'/>";
$page->createPage('Instructor Information',$css,$js,$body);
$page->dbCloseConnect();

?>